home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekkan Dennou Club 145
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin
/
tools
/
sharp
/
sxwork3.lzh
/
福袋
/
注釈付ヘッダ
/
DIALOG.H
< prev
next >
Wrap
Text File
|
1994-02-20
|
4KB
|
137 lines
/*
* dialog.h X68k SX_SYSTEM ver 2.01 Copyright 1994 SHARP/First Class Technology
*/
#ifndef __DIALOG_H
#define __DIALOG_H
#ifndef __SXDEF2_H
#include <sxdef2.h>
#endif
#ifndef __WINDOW_H
#include <window.h>
#endif
#ifdef FORWORD
#define __PROTO_TYPE
#endif
#ifdef __STDC__
#define __PROTO_TYPE
#endif
typedef struct DItem DItem; /* ダイアログアイテム */
typedef struct DIList DIList; /* アイテムリスト */
typedef struct DLOG DLOG; /* ダイアログテンプレート */
typedef struct DIList DITL; /* ダイアログアイテムテンプレート */
/*
* ダイアログマン (Dialog Man)
*/
/* ダイアログのアイテムタイプ */
#define D_USER 0x00 /* ユーザーアイテム */
#define D_CHRBTN 0x04 /* 文字ボタン */
#define D_RADBTN 0x05 /* ラジオボタン */
#define D_CHKBOX 0x06 /* チェックボックス */
#define D_RSCITM 0x07 /* スクロールバー */
#define D_STCTXT 0x08 /* 固定テキスト */
#define D_EDTTXT 0x10 /* 編集可能テキスト */
#define D_ICNITM 0x20 /* アイコン */
#define D_PICITM 0x40 /* グラフスクリプト */
#define D_DISABL 0x80 /* 未帰還属性 */
enum ErrorType { /* エラーダイアログのアイテムタイプ */
D_CONFIRM = 1, /* 「確認」ボタン */
D_YESNO = 4, /* 「はい」/「いいえ」ボタン */
D_SAVE, /* 「保存」/「終了」ボタン */
D_EXEC, /* 「実行」/「取消」ボタン */
D_CONT /* 「継続」/「中止」ボタン */
};
/* エラーダイアログのアイテムタイプ */
#define D_YELLOW 0 /* イエローフラッグ */
#define D_RED (1 << 8) /* レッドフラッグ */
struct Dialog { /* ダイアログレコード */
Window window; /* ウインドウレコード */
DIList **itemList; /* アイテムリストへのハンドル */
TEdit **tEdit; /* テキストエディットハンドル */
short edit; /* 内部で使用(テキストマン用) */
short eOpen; /* 内部で使用(テキストマン用) */
short rsv; /* システム予約 */
};
struct DItem { /* ダイアログアイテム */
Handle item; /* アイテムへのハンドル */
Rect bounds; /* アイテムへのレクタングル */
unsigned char type; /* アイテムタイプ */
unsigned char size; /* 初期データサイズ */
unsigned char data[_VARLEN]; /* 初期データ(可変長データ) */
};
struct DIList { /* アイテムリスト */
short number; /* アイテムの個数-1 */
DItem items[_VARLEN]; /* 個数分のアイテムレコード
(可変長データ) */
};
struct DLOG { /* ダイアログテンプレート */
Rect bounds; /* ダイアログのレクタングル */
short defID; /* リソースWDEFのID×16 */
short visible; /* 可視フラグ */
short close; /* クローズボタン使用フラグ */
long taskID; /* タスクID */
short itemID; /* リソースDITLのID */
LASCII title; /* ダイアログタイトル */
};
#ifdef __PROTO_TYPE
void DMInit(void);
void DMFontSet(int);
Dialog *DMOpen(Dialog *, Rect *, const _LASCII, BOOLEAN, int, Window *, BOOLEAN, long, _Handle);
Dialog *DMRefer(int, Dialog *, Window *);
int DMClose(Dialog *);
int DMDispose(Dialog *);
int DMControl(int (*)(Dialog *, Event *));
int DMDraw(Dialog *);
int DIGet(Dialog *, int, short *, Handle *, Rect *);
int DISet(Dialog *, int, short, Handle, Rect *);
int DITGet(short, Handle, _LASCII);
int DITSet(short, Handle, const _LASCII);
int DITSelect(Dialog *, int, long, long);
int DIUpdate(Dialog *, Region **);
int DMBeep(int);
int DIHide(Dialog *, int);
int DIShow(Dialog *, int);
int DMError(int, const char *);
int DMWaitOpen(void);
int DMWaitClose(void);
int DMWaitWhile(void);
#undef __PROTO_TYPE
#else
void DMInit();
void DMFontSet();
Dialog *DMOpen();
Dialog *DMRefer();
int DMClose();
int DMDispose();
int DMControl();
int DMDraw();
int DIGet();
int DISet();
int DITGet();
int DITSet();
int DITSelect();
int DIUpdate();
int DMBeep();
int DIHide();
int DIShow();
int DMError();
int DMWaitOpen();
int DMWaitClose();
int DMWaitWhile();
#endif __PROTO_TYPE
#endif __DIALOG_H